package com.bibi.hanshunping.chapter05;

import java.util.Scanner;

public class Switch01 {
    public static void main(String[] args) {

        Scanner myScanner = new Scanner(System.in);
        System.out.println("请输入一个字符a-g");
        char c = myScanner.next().charAt(0);
        switch (c) {
            case 'a':
                System.out.println("星期一");
                break;
            case 'b':
                System.out.println("星期二");
                break;
            default:
                System.out.println("输入错误！");
        }
    }
}
